from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By

driver = webdriver.Firefox()
driver.get("http://www.baidu.com")
# ele = driver.find_element(By.ID,'//*[@id="kw"]')
ele = driver.find_element(By.CSS_SELECTOR, '#kw')
ele.send_keys('storm')
sleep(2)
driver.quit()



